<?php
/**
 * Created by PhpStorm.
 * User: Dave
 * Date: 2018/11/13
 * Time: 11:01
 */

namespace Biz\pockets\constInterface;

/**
 * 活动层级定义 todo 尝试采用ArrayAccess的方式实现
 * Interface ActivityConfig
 * @package Biz\pockets\constInterface
 */

interface ActivityConfig
{
    const ACTIVITY_LEVEL = 'activity_level'; // 活动层级
    const ACTIVITY_SUBSCRIPTION = 'activity_subscription'; // 活动是否可订阅
    const ACTIVITY_PREVIEW = 'activity_preview'; // 活动是否预告
    const ACTIVITY_CHECK_PRICE_LEVEL = 'activity_check_price'; // 活动价格验证

    const ACTIVITY_CONFIG = [
        ActivityInfo::ACTIVITY_TYPE_LIMIT_TIME_ROB => [
            self::ACTIVITY_LEVEL => 1,
            self::ACTIVITY_SUBSCRIPTION => 0,
            self::ACTIVITY_PREVIEW => 1,
            self::ACTIVITY_CHECK_PRICE_LEVEL => 2,
        ],
        ActivityInfo::ACTIVITY_TYPE_ZHUYOUJINTIE => [
            self::ACTIVITY_LEVEL => 1,
            self::ACTIVITY_SUBSCRIPTION => 0,
            self::ACTIVITY_PREVIEW => 1,
            self::ACTIVITY_CHECK_PRICE_LEVEL => 2,
        ],
        ActivityInfo::ACTIVITY_TYPE_NEWCOMER_EXCLUSIVE => [
            self::ACTIVITY_LEVEL => 2,
            self::ACTIVITY_SUBSCRIPTION => 0,
            self::ACTIVITY_PREVIEW => 0,
            self::ACTIVITY_CHECK_PRICE_LEVEL => 2,
        ],
        ActivityInfo::ACTIVITY_TYPE_WEEK_PURCHASE => [
            self::ACTIVITY_LEVEL => 3,
            self::ACTIVITY_SUBSCRIPTION => 0,
            self::ACTIVITY_PREVIEW => 0,
            self::ACTIVITY_CHECK_PRICE_LEVEL => 1,
        ],
        ActivityInfo::ACTIVITY_TYPE_TUAN => [
            self::ACTIVITY_LEVEL => 1,
            self::ACTIVITY_SUBSCRIPTION => 0,
            self::ACTIVITY_PREVIEW => 1,
            self::ACTIVITY_CHECK_PRICE_LEVEL => 2,
        ],
        ActivityInfo::ACTIVITY_TYPE_PINTUAN => [
            self::ACTIVITY_LEVEL => 4,
            self::ACTIVITY_SUBSCRIPTION => 0,
            self::ACTIVITY_PREVIEW => 0,
            self::ACTIVITY_CHECK_PRICE_LEVEL => 2,
        ]
    ];
}